package com.mdb.open.trade.domain.dto.product;

import com.mdb.bc.api.data.DataObjectBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author liuyi
 * @date 2019/07/20
 **/
@Data
@ApiModel(value="FreezeLimitDto", description="额度冻结dto")
public class FreezeLimitDto extends DataObjectBase {

    /**
     * 产品CODE
     */
    @ApiModelProperty(value = "产品CODE")
    @NotBlank(message = "产品CODE不允许为空")
    private String prodCode;
    /**
     * 客户编码
     */
    @ApiModelProperty(value = "客户编码")
    @NotBlank(message = "客户编码不允许为空")
    private String customerCode;
    /**
     * 商户编号
     */
    @ApiModelProperty(value = "商户编号")
    @NotBlank(message = "商户编号不允许为空")
    private String merchantNo;

    /**
     * 冻结金额
     */
    @NotNull(message = "本次冻结使用金额不允许为空")
    private BigDecimal useBal;

}
